package com.apexsoft.assets.base.exception;

import com.apexsoft.assets.base.response.JSONResponse;

import java.util.Map;

/**
 * Created by Administrator on 2018/3/12.
 */
public class RoadShowException extends Exception {
    private int code = JSONResponse.CODE_FAIL;
    private Map<String,Object> extInfo;

    public RoadShowException(int code, String message) {
        super(message);
        this.code = code;
    }

    public Map<String, Object> getExtInfo() {
        return extInfo;
    }

    public void setExtInfo(Map<String, Object> extInfo) {
        this.extInfo = extInfo;
    }

    public int getCode() {
        return code;
    }

    public RoadShowException(String message) {
        super(message);
    }

    public RoadShowException(String message, Throwable cause) {
        super(message, cause);
    }
}
